<html>
<head>
<base href="http://localhost:8000/misc/resources/isindex-with-no-form-base-href-submit.html">
<script>
function log(msg)
{
    document.getElementById("log").appendChild(document.createTextNode(msg + "\n"));
}

function test()
{
    var forms = document.getElementsByTagName('form');
    if (forms.length != 1 || forms[0].action != 'http://localhost:8000/misc/resources/isindex-with-no-form-base-href-submit.html') {
        log('Could not find form with expected action');
        if (window.testRunner)
            testRunner.notifyDone();
    }


    var isindexElm = document.getElementById("isindex");
    isindexElm.value = "This is a test";
    isindexElm.focus();

    if (window.eventSender)
        eventSender.keyDown(String.fromCharCode(0x0d));
}

window.onload = test;
</script>
</head>
<body>
<pre id="log"></pre>
<p>This page tests that we correctly put the value of an <tt>&lt;isindex&gt;</tt> element into the form data.</p>
<p>If you are running this test by hand, press the enter/return key on your keyboard to submit.</p>
<isindex id="isindex"></isindex>
</body>
</html>
